/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="OBITOMATERNO")
public class ObitoMaternoProteu implements Serializable{

    @Id
    @Column(name="OBM_IN_CODIGO")
    private Integer obmInCodigo;
    @Column(name="OBM_ST_DESCRICAO")
    private String obmStDescricao;

    public Integer getObmInCodigo() {
        return obmInCodigo;
    }

    public void setObmInCodigo(Integer obmInCodigo) {
        this.obmInCodigo = obmInCodigo;
    }

    public String getObmStDescricao() {
        return obmStDescricao;
    }

    public void setObmStDescricao(String obmStDescricao) {
        this.obmStDescricao = obmStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ObitoMaternoProteu other = (ObitoMaternoProteu) obj;
        if (this.obmInCodigo != other.obmInCodigo && (this.obmInCodigo == null || !this.obmInCodigo.equals(other.obmInCodigo))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 5;
        hash = 89 * hash + (this.obmInCodigo != null ? this.obmInCodigo.hashCode() : 0);
        return hash;
    }


}
